package com.yunhe.sms.mode;

/**
 * Created by Administrator on 2017/8/7 0007.
 */
public class User {

    public static final int TYPE_TEACHER_INT = 1;  //讲师类型
    public static final int TYPE_ADMIN_INT= 2;  //管理员类型
    public static final String TYPE_TEACHER_STR = "讲师";  //讲师类型
    public static final String TYPE_ADMIN_STR= "管理员";  //管理员类型
    private String id;//编号
    private String name; //
    private String password;
    private String realName;
    private String type;
    private Teacher teacher;
    public User(){}

    public User( String name, String type) {
       this(null,name,null,null,type,null);
    }

    public User(String id, String name, String password, String realName, String type,Teacher teacher) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.realName = realName;
        this.type = type;
        this.teacher = teacher;
    }
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }
}
